// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   ScrollText2.java

package com.kaylyn.item;

import com.kaylyn.util.Initializable;
import com.kaylyn.util.Resource;

import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;

import javax.swing.*;

public class ScrollText2 extends JLabel implements Initializable {

	public ScrollText2() {
		s1 = "        \u9996\u5148\u6211\u8981\u611F\u8C22\u5C0F\u5B9D\u5B9D\uFF0C\u9C7F\uFF0C\u5C0F\u56E1\u56E1\uFF0C\u8C46\u8150\uFF0C\u5C0F\u9E2D\u9E2D\uFF0C\u8089\u8089\uFF0C\u5C0F\u8D64\u4F6C\uFF0C\u599E\uFF0C\u5C0F\u6BDB\u6BDB\uFF0C\u5C41\u80A1\uFF0C\u50BB\u4E0D\u50BB\u9E2D\uFF0C\u5C0F\u53EF\u7231\u548C\u571F\u8C46\u5934\uFF0C\u662F\u4ED6\u4EEC\u7684\u652F\u8BA9\u6211\u8D70\u5230\u4ECA\u5929\uFF0C\u987A\u5229\u5B8C\u6210\u4E86\u8FD9\u4E2A\u4F5C\u54C1\u3002\u5C24\u5176\u8981\u611F\u8C22\u9648\u73AE\u73B2\uFF0C\u5728\u6700\u540E\u9636\u6BB5\uFF0C\u5979\u51ED\u501F\u5979\u7684\u5929\u8D4B\u548C\u80FD\u529B\uFF0C\u5E2E\u52A9\u6211\u5B8C\u6210\u4E86\u8FD9\u4E2A\u4F5C\u54C1\u4E2D\u6700\u6700\u6700\u91CD\u8981\u7684\u90E8\u5206\u3002";
		s2 = "\n        \u4ECE2009\u5E74\u5BD2\u5047\u5F00\u5DE5\uFF0C\u5386\u65F64\u4E2A\u6708\u3002\u5176\u5B9E\u521A\u5F00\u59CB\u6709\u4E9B\u8FF7\u832B\uFF0C\u4E0D\u77E5\u9053\u505A\u4E2A\u4EC0\u4E48\u4E1C\u897F\u597D\uFF0C\u6478\u7D22\u4E86\u5F88\u4E45\uFF0C\u6709\u7684\u653E\u5F03\u4E86\uFF0C\u6709\u4E9B\u4E0D\u5F97\u4E0D\u4ECE\u5934\u518D\u6765\uFF0C\u8FD9\u662F\u4E00\u4E2A\u8270\u96BE\u7684\u5F00\u7AEF\u3002\u60F3\u8FC7\u8981\u4E0D\u8981\u653E\u5F03\uFF0C\u4F46\u662F\u60F3\u5230\u66FE\u7ECF\u7B54\u5E94\u4E86\u5C0F\u5B9D\u5B9D\uFF0C\u4E00\u5B9A\u4F1A\u505A\u597D\u7684\uFF0C\u4E8E\u662F\u54AC\u54AC\u7259\uFF0C\u544A\u8BC9\u81EA\u5DF1\u4E00\u5B9A\u8981\u575A\u6301\u4E0B\u53BB\u3002\u4ECE\u4ECA\u5929\u6765\u770B\uFF0C\u5F53\u65F6\u7684\u51B3\u5B9A\u662F\u5341\u5206\u6B63\u786E\u7684\uFF0C\u6CA1\u6709\u4E00\u70B9\u6BC5\u529B\uFF0C\u4E0D\u80FD\u575A\u5B88\u8BFA\u8A00\uFF0C\u600E\u4E48\u80FD\u770B\u5230\u4ECA\u5929\u5982\u6B64perfect\u7684\u4F5C\u54C1\u5462\uFF1F";
		s3 = "\n        \u5728\u6700\u540E\u7684\u4E00\u4E2A\u591A\u6708\u5185\uFF0C\u6574\u4E2A\u8FDB\u5EA6\u6709\u4E86\u7A81\u7834\u6027\u7684\u8FDB\u5C55\u3002\u4ECE\u4E00\u5F00\u59CB\u7684\u5B66\u4E60\u65B9\u6CD5\uFF0C\u89E3\u51B3\u6280\u672F\u96BE\u70B9\uFF0C\u8F6C\u53D8\u6210\u5982\u4F55\u5E94\u7528\u6240\u5B66\u5230\u7684\u6280\u672F\u3002\u4E8E\u662F\u6211\u4ECE\u6BCF\u5929\u767E\u5206\u4E4B\u96F6\u70B9\u4E00\u7684\u8FDB\u5EA6\u63A8\u8FDB\u5230\u4E86\u6BCF\u5929\u767E\u5206\u4E4B\u4E00\uFF0C\u773C\u770B\u80DC\u5229\u5728\u671B\u4E86\u3002\u8FD9\u4E5F\u8BA9\u6211\u5145\u6EE1\u6FC0\u60C5\uFF0C\u5E9F\u5BDD\u5FD8\u5C4E\uFF0C\u5F7B\u591C\u7F16\u7A0B\uFF0C\u671F\u5F85\u7740\u4E00\u4E2A\u771F\u6B63perfect\u7684\u4F5C\u54C1\u7684\u8BDE\u751F\u3002";
		s4 = "\n        \u6700\u8FD1\u51E0\u4E2A\u793C\u62DC\u53C8\u53D8\u8270\u8F9B\u8D77\u6765\u3002\u9996\u5148\u8981\u5B66\u4E60photoshop\uFF0C\u8FD9\u4E2A\u5728\u4E4B\u524D\u6211\u5B8C\u5168\u4E0D\u77E5\u9053\u600E\u4E48\u5F04\u7684\u4E1C\u897F\u3002\u5F00\u59CB\u4E24\u5929\u5F88\u7CDF\u7CD5\uFF0C\u4E0D\u80FD\u8FBE\u5230\u6211\u9884\u671F\u7684\u6548\u679C\uFF0C\u5982\u679C\u6CA1\u6709\u4E00\u4E2Aperfect\u7684\u7F8E\u5DE5\u6548\u679C\uFF0C\u600E\u4E48\u624D\u80FD\u5C06perfect\u7684\u6280\u672F\u878D\u5165\u5176\u4E2D\u5462\uFF1F\u5728\u6781\u5EA6\u56F0\u6270\u4E86\u51E0\u5929\u4E4B\u540E\uFF0C\u5728\u5C0F\u5B9D\u5B9D\u7684\u5E2E\u52A9\u4E0B\uFF0C\u6211\u5F00\u59CB\u6709\u4E86\u4E00\u4E9B\u6210\u679C\uFF0C\u8FD9\u8BA9\u6211\u5907\u53D7\u9F13\u821E\u3002";
		s5 = "\n        \u800C\u5728\u4E0A\u4E2A\u793C\u62DC\uFF0C\u6839\u636E\u5C0F\u5B9D\u5B9D\u7684\u8981\u6C42\uFF0C\u6211\u5BF9\u7A0B\u5E8F\u505A\u4E86\u4E00\u4E9B\u4FEE\u6539\uFF0C\u4F7F\u5F97\u6574\u4F53\u7684\u6548\u679C\u770B\u4E0A\u53BB\u66F4\u52A0\u52A8\u611F\uFF0C\u5E76\u4E14\u52A0\u4E0A\u4E86\u66F4\u591A\u52A8\u6001\u5143\u7D20\u3002\u4F46\u662F\u5C31\u5728\u8FD9\u65F6\uFF0C\u7A0B\u5E8F\u7684\u7A33\u5B9A\u6027\u53D7\u5230\u4E86\u8003\u9A8C\uFF0C\u5176\u4E2D\u6709\u4E00\u5927\u90E8\u5206\u4E0D\u5F97\u4E0D\u629B\u5F03\uFF0C\u8FDB\u5EA6\u518D\u4E00\u6B21\u53D7\u5230\u4E86\u8003\u9A8C\u3002\u4E8E\u662F\u6211\u4E0D\u5F97\u4E0D\u8FDE\u7EED\u51E0\u5929\u7F16\u7A0B\u5230\u51CC\u66684\u70B9\uFF0C\u53C8\u4E00\u6B21\uFF0C\u7A0B\u5E8F\u53D8\u5F97\u66F4perfect\u4E86\u3002\u4F46\u6B64\u65F6\u6B64\u523B\uFF0C\u6211\u4E0D\u65AD\u63D0\u9192\u81EA\u5DF1\uFF0C\u8981\u6212\u9A84\u6212\u8E81\uFF0C\u7A0B\u5E8F\u8FD8\u6CA1\u6709\u6700\u7EC8\u5B8C\u6210\uFF0C\u6240\u4EE5\u4E0D\u80FD\u6709\u4E1D\u6BEB\u61C8\u6020\uFF0C\u4E00\u5B9A\u8981\u4E00\u9F13\u4F5C\u6C14\u575A\u6301\u5230\u6700\u540E\u3002";
		s6 = "\n        \u6700\u540E\uFF0C\u611F\u8C22\u5C0F\u5B9D\u5B9D\u7684\u5E2E\u52A9\u3002\u5E0C\u671B\u8FD9\u4E2A\u793C\u7269\u80FD\u7ED9\u9648\u73AE\u73B2\u4E00\u4E2A\u5927\u5927\u7684surprise\uFF0C\u4E0D\u8D1F\u8FD9\u591A\u65E5\u6765\u7684\u8270\u8F9B\u3002";
		setSize(840, 560);
		setIcon(new ImageIcon(Resource.loadImage("8345923.jpg")));
		setOpaque(true);
		text = new JTextArea();
		text.setEditable(false);
		text.setLineWrap(true);
		text.setOpaque(false);
		text.setFont(new Font("\u534E\u6587\u65B0\u9B4F", 0, 20));
		text.setForeground(Color.BLACK);
		text.append(s1);
		text.append(s2);
		text.append(s3);
		text.append(s4);
		text.append(s5);
		text.append(s6);
		scrollPane = new JScrollPane();
		scrollPane.setSize(500, 250);
		scrollPane.setLocation(90, 100);
		scrollPane.setOpaque(false);
		scrollPane.getViewport().setOpaque(false);
		scrollPane.setBorder(BorderFactory.createEmptyBorder());
		scrollPane.setVerticalScrollBarPolicy(21);
		scrollPane.setHorizontalScrollBarPolicy(31);
		text.addMouseMotionListener(new MouseAdapter(){

			@Override
			public void mouseDragged(MouseEvent e) {
				repaint();
			}
			
		});
		text.addMouseListener(new MouseAdapter(){

			@Override
			public void mouseReleased(MouseEvent e) {
				repaint();
			}

			@Override
			public void mousePressed(MouseEvent e) {
				repaint();
			}
			
		});
		text.addMouseWheelListener(new MouseWheelListener() {

			public void mouseWheelMoved(MouseWheelEvent e) {
				Point p = scrollPane.getViewport().getViewPosition();
				if (e.getWheelRotation() == 1
						&& p.y < text.getHeight() - scrollPane.getHeight())
					p.y += 42;
				else if (e.getWheelRotation() == -1 && p.y > 0)
					p.y -= 42;
				scrollPane.getViewport().setViewPosition(p);
				repaint();
			}

		});
		add(scrollPane);
	}

	public void start() {
		SwingUtilities.invokeLater(new Runnable() {

			@Override
			public void run() {
				scrollPane.getViewport().setView(text);
			}
		});
	}

	public void stop() {
	}

	private static final long serialVersionUID = 1L;
	private JScrollPane scrollPane;
	private JTextArea text;
	private String s1;
	private String s2;
	private String s3;
	private String s4;
	private String s5;
	private String s6;

}
